#ifndef __COMMON_BUILDER_HPP__
#define __COMMON_BUILDER_HPP__

#include "stdafx.h"

// headfiles for each type of device
#include "commprd_adapter.hpp"
#define COMMON_DEV 0
#define DAHUA_DEV 1

// headfiles for each type of server
#include "commsrv_adapter.hpp"
#include "xtreamsrv_adapter.hpp"
#include "proxysrv_adapter.hpp"
#define COMMON_SRV 0
#define XTREAM_SRV 1
#define PROXY_SRV 2

class object_builder {
public:
	//produce a special object for device
	static commprd_adapter * create_producer( u_int32 producer_type );
	static commsrv_adapter * create_server( u_int32 server_type );
};

#endif

